﻿using System;
using System.ServiceModel;

namespace YawetagDemo.Framework.Server.Services
{
    public class WCFServiceHost : ServiceHost
    {
        public WCFServiceHost()
            : base(typeof(WCFServiceDispatcher), new[] { new Uri("net.tcp://localhost:3000") })
        {
            AddServiceEndpoint(typeof(IWCFCoreService), new NetTcpBinding(SecurityMode.None, true), "CoreService");
            AddServiceEndpoint(typeof(IWCFMusicService), new NetTcpBinding(SecurityMode.None, true), "MusicService");
        }
    }
}
